(function(){
	
	Ext.define('NetShopping.goods.GoodsShoppingGridStore',{
		extend:'Ext.data.Store',
		autoLoad: true,
		fields: [
			{name:'id'},
			{name:'goodsName'},
			{name:'goodsCode'},
			{name:'goodsPrice'},
			{name:'goodsUnit'},
			{name:'goodsInfo'},
			{name:'createTime'},
			{name:'isUse'}
		],
		pageSize:20,
	    proxy: {
	        type: 'ajax',
	        url: '/goods/queryGoodsBaseIndex.do',
	        reader: {
	            type: 'json',
	            root: 'objectList',
	            totalProperty:'allCount'
	        }
	    }
	});
	
	Ext.define('NetShopping.goods.GoodsShoppingGrid',{
		extend:'Ext.panel.Panel',
		alias:'widget.goodsshoppinggrid',
		layout:'fit',
		requires:['NetShopping.goods.GoodsBaseGrid'],
		items:[
			{
				btConfig:{//默认按钮
					add:false,
					edit:false,
					del:false,
					refresh:false
				},
				xtype:'goodsbasegrid',
				gridStore:'NetShopping.goods.GoodsShoppingGridStore'
			}
		]
	})
})()

